/**
 * Created by Richard Radlherr.
 * Date: 24.06.2006 14:28
 */

using System;

namespace TagTool.Devices.DataStructures
{
	public enum AxisUnit
	{
		None = 0,
		Inches,
		Centimeters,
		Circle
	}
	
	/**
	 * An axis defines the origin an range of a geometric coordinate system.
	 * Immutable.
	 */
	public class Axis
	{
		private int minimum;
		private int maximum;
		private AxisUnit unit;
		private double resolution;
		
		public Axis(int minimum , int maximum, AxisUnit unit, double resolution)
		{
			this.minimum = minimum;
			this.maximum = maximum;
			this.unit = unit;
			this.resolution = resolution;
		}
		
		public int Minimum
		{
			get { return minimum; }
		}
		
		public int Maximum
		{
			get { return maximum; }
		}
		
		public AxisUnit Unit
		{
			get { return unit; }
		}
		
		public double Resolution
		{
			get { return resolution; }
		}		
	}
}
